//
// Author : muyuwei@360.cn
// Date : 2013.8.6
//
#ifndef _BBT_ENGINEER_STATUS_CACHE_H_
#define _BBT_ENGINEER_STATUS_CACHE_H_

#include <stdint.h>
#include <map>
#include <vector>

#include <boost/thread/shared_mutex.hpp>
// #include <boost/shared_ptr.hpp>


namespace im {

class ImageFilter {
 public:
  static ImageFilter & Instance() {
    static ImageFilter inst;
    return inst;
  }

  bool IsLegal(int64_t qid);

 private:
  ImageFilter() {}
  ImageFilter(const ImageFilter&);
  ImageFilter& operator=(const ImageFilter&);

  std::map<int64_t, std::vector<time_t> > filter_map_;
  mutable boost::shared_mutex mutex_;
};

}

#endif // _BBT_ENGINEER_STATUS_CACHE_H_

